package com.yanqu.road.server.timer.dafuweng;

import com.yanqu.road.server.manager.cross.battle.DaFuWengMgr;
import com.yanqu.road.server.manger.CommandStatisticsMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class DaFuWengCleanTask extends GeneralTask {

    private boolean isRun = false;

    @Override
    public void doRun() {
        if (!isRun) {
            isRun = true;

            try {
                DaFuWengMgr.cleanOldData();
                CommandStatisticsMgr.resetAndLog();
            } catch (Exception e) {
                e.printStackTrace();
            }

            isRun = false;
        }
    }
}
